package com.igroupes.ovineherd.raw.service.raw;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.igroupes.ovineherd.entity.DataModelRelationshipEntity;
import com.igroupes.ovineherd.mapper.DataModelRelationshipMapper;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class DataModelRelationshipService extends ServiceImpl<DataModelRelationshipMapper, DataModelRelationshipEntity> {


    public void deleteRelationship(Long userId, Long versionId) {
        Map<String, Long> map = new HashMap<>();
        map.put("userId",userId);
        map.put("versionId", versionId);
        this.getBaseMapper().deleteRelationship(map);
    }
}
